package mypackage3;

import java.util.Random;
import java.util.Scanner;

public class DisruptOrderString {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String before=sc.next();
        char[] charbefore=before.toCharArray();
        Random r=new Random();
        for (int i = 0; i < charbefore.length; i++) {
            int index=r.nextInt(charbefore.length);
            char temp=charbefore[index];
            charbefore[index]=charbefore[i];
            charbefore[i]=temp;
        }
        String afther=new String(charbefore);
        System.out.println(afther);
    }
}
